/*设置 主题风格设置...*/

import color from "../data/color"


export default{
	//设置主题参数
		setThemeProprerty(theme){
			if(document && theme) {
					let variable = window.document.documentElement.style
					variable.setProperty('--mode-color',theme.modeColor)
					variable.setProperty('--mode-font-color',theme.modeFontColor)   
					
					if(theme.type == 'night'){		
						variable.setProperty('--theme-color',color.themeColor.night.themeColor)
						variable.setProperty('--theme-color-half',color.themeColor.night.themeColorHalf)
						variable.setProperty('--theme-color-back',color.themeColor.night.themeColorBack)
						variable.setProperty('--theme-font-olor',color.themeColor.night.themeFontColor)  
						variable.setProperty('--theme-font-color-half',color.themeColor.night.themeFontColorHalf)
					}else{
						variable.setProperty('--theme-color',color.themeColor.day.themeColor)
						variable.setProperty('--theme-color-half',color.themeColor.day.themeColorHalf)
						variable.setProperty('--theme-color-back',color.themeColor.day.themeColorBack)
						variable.setProperty('--theme-font-olor',color.themeColor.day.themeFontColor)  
						variable.setProperty('--theme-font-color-half',color.themeColor.day.themeFontColorHalf)  
				}	
			}		
		},
		
		
	
	
		
}